//Design By Do Trung --- Email : trungqn19852003@yahoo.com
//Ngày Design :30/12/2011 4:57:13 PM
using System;
using System.Data;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using Data=VietStar.Library.Data;
using Entity = VietStar.Library.Entity;
namespace VietStar.Library.Business
{
	/// <summary>
	/// </summary>
	public class ChuyenMuc
	{
		public ChuyenMuc() {}
		Data.ChuyenMuc chuyenmuc= new Data.ChuyenMuc();

		public bool Insert(Entity.ChuyenMuc entity)
		{
		    return chuyenmuc.Insert(entity);
		}
		public DataTable Select()
		{
			return chuyenmuc.Select();
		}
		public DataTable SelectPrimarykey(Entity.ChuyenMuc entity)
		{
			return chuyenmuc.SelectPrimaryKey(entity);
		}
		public bool Update(Entity.ChuyenMuc entity)
		{
			return chuyenmuc.Update(entity);
		}
		public bool Delete(Entity.ChuyenMuc entity)
		{
			return chuyenmuc.Delete(entity);
		}
        public DataTable SelectTheoCap(Entity.ChuyenMuc entity)
        {
            return chuyenmuc.SelectTheoCap(entity);
        }
        public DataTable SelectChuyenMucCon(Entity.ChuyenMuc entity)
        {
            return chuyenmuc.SelectDanhMucCon(entity);
        }
        public DataTable SelectDanhMucCha()
        {
            return chuyenmuc.SelectDanhMucCha();
        }
        //Load danh mục theo DanhMucCha
        public DataTable SelectByDanhMucCha(Entity.ChuyenMuc entity)
        {
            return chuyenmuc.SelectByDanhMucCha(entity);
        }
        //Cập nhật thứ tự sắp xếp của danh mục
        public bool UpdateSapXep(Entity.ChuyenMuc enity)
        {
            return chuyenmuc.UpdateSapXep(enity);
        }
    }
}
